import { CrowdRangeEnum, preferentialEnum, scopeEnum } from "./enum";

// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace CouponTypes {
    export interface ICouponItem{
        id:number;
        title: string; //优惠券标题
        imageUrl: string; //优惠券图片
        scope:scopeEnum;
        threshold: number; //门槛
        thresholdNum: number; //门槛值
        crowdRange:CrowdRangeEnum,
        withPromo: number; //是否和促销叠加
        type: preferentialEnum; //优惠内容 1.打折；2.减钱',
        value: number; //优惠数值
        quantity: number; //发放数量',
        takeCount: number; //领取数量
        usedCount: number; //使用数量',
        validType: number; //时效类型',
        validStartTime: string; //时效开始时间',
        validEndTime: string; //时效结束时间',
        validDays: number; //自领取后多少天失效',
        status: number; //优惠券状态';
        creator: string;
        createTime: string;
        updator: string;
        updateTime: string;
        categories: any[];
        goods: any[]
       }

     export type PageCouponType = Partial<Pick<ICouponItem,"title"|"threshold"|"type"|"status">>

}

